package edu.ynu.se.xiecheng.achitectureclass.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

/**
 * 设备信息DTO
 * 用于传输设备的基本信息
 */
@Data
@ApiModel(description = "设备信息")
public class DeviceDTO {
    
    @ApiModelProperty(value = "设备ID")
    private Long id;
    
    @ApiModelProperty(value = "设备名称", example = "土壤湿度传感器1号")
    private String name;
    
    @ApiModelProperty(value = "设备序列号")
    private String serialNumber;
    
    @ApiModelProperty(value = "设备类型", example = "soil_sensor/camera")
    private String deviceType;
    
    @ApiModelProperty(value = "测量单位", example = "%")
    private String unit;
    
    @ApiModelProperty(value = "监控地址（仅摄像头设备）")
    private String monitorUrl;
    
    @ApiModelProperty(value = "所属温室大棚ID")
    private Long greenhouseId;
    
    @ApiModelProperty(value = "所属温室大棚名称")
    private String greenhouseName;
    
    @ApiModelProperty(value = "设备状态", example = "在线/离线")
    private String status;
    
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
} 